package com.site.service.impl;

import com.site.domain.InfoDetails;
import com.site.persistence.InfoDetailsMapper;
import com.site.service.InfoDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description:
 * @auther: junliang
 * @date: 2018/9/1 11:10
 */
@Service
public class InfoDetailsServiceImpl implements InfoDetailsService {
    @Autowired
    private InfoDetailsMapper infoDetailsMapper;

    @Override
    public List<InfoDetails> findInfoDetails() throws Exception {
        return this.infoDetailsMapper.findInfoDetails();
    }
    @Override
    public InfoDetails getInfoDetailsById(int id) throws Exception {
        return this.infoDetailsMapper.getInfoDetailsById(id);
    }
    @Override
    public void addInfoDetails(InfoDetails InfoDetails) throws Exception {
        this.infoDetailsMapper.addInfoDetails(InfoDetails);
    }
    @Override
    public void updInfoDetails(InfoDetails InfoDetails) throws Exception {
        this.infoDetailsMapper.updInfoDetails(InfoDetails);
    }
    @Override
    public void delInfoDetailsById(int id) throws Exception {
        this.infoDetailsMapper.delInfoDetailsById(id);
    }
}